<!DOCTYPE html>
<html>
    <head>
        <title>Function Name Example</title>
    </head>
    <body>
        <script type="text/javascript">
        
            function functionName(){
                //noop
            }
            
            //works only in Firefox, Safari, Chrome, and Opera
            alert(functionName.name); //"functionName"

        </script>
     
    </body>
</html>
